package com.hx.staticState.demo2;

/**
 * @Author： Huathy
 * @ClassPath： com.hx.builder.com.hx.staticState.demo2.Worker
 * @Date： 2021-01-31 15:03
 * @Description：
 */
public class Worker extends Builder {

    private Product product;

    public Worker() {
        product = new Product();
    }

    @Override
    Builder builderA(String msg) {
        product.setBuildA(msg);
        return this;
    }

    @Override
    Builder builderB(String msg) {
        product.setBuildB(msg);
        return this;
    }

    @Override
    Builder builderC(String msg) {
        product.setBuildC(msg);
        return this;
    }

    @Override
    Product getProduct() {
        return product;
    }
}
